//
//  UIImage+image.m
//  sinaWeiBo_yu
//
//  Created by 振宇陈 on 16/9/6.
//  Copyright © 2016年 振宇陈. All rights reserved.
//

#import "UIImage+image.h"

@implementation UIImage (image)


+ (instancetype)imageWithOriginalName:(NSString *)imageName {
    UIImage* image = [UIImage imageNamed:imageName];
    return [image imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal];
}

+ (instancetype)imageWithStretchableName:(NSString *)imageName {
    UIImage* image = [UIImage imageNamed:imageName];
    return [image stretchableImageWithLeftCapWidth:image.size.width/2 topCapHeight:image.size.height/2];
}
@end
